/**
 * UI文件选择控件
 * @author wyajun[wyajun@slof.com]
 */
function FileText(o){
	this.editor = o;
}

/**
 * 给控件赋值文档路径
 */
FileText.prototype.setValue = function(path){
	var $editor = jQuery(this.editor);
	jQuery('#'+$editor.attr("id")).filetext("setValue",path)
}


/**
 * 初始化控件
 */
FileText.prototype.onReady = function(){
    var $editor = jQuery(this.editor);
	var id = $editor.attr("id");	
	//执行布局组件函数
	using('filetext', function(){
		jQuery("#"+id).filetext({});
	});
}